﻿package com.cipri.battle.events 
{
    import flash.events.Event;
    
    /**
     * ...
     * @author Ciprian Caba -> caba.ciprian@gmail.com
     */
    public class BoxHitEvent extends Event 
    {
        public static const HIT:String = "HIT";
        
        private var _oldValue:uint;
        
        public function BoxHitEvent(type:String, oldValue:uint, bubbles:Boolean = false, cancelable:Boolean = false) 
        { 
            _oldValue = oldValue;
            super(type, bubbles, cancelable);
        } 
        
        public override function clone():Event 
        { 
            return new BoxHitEvent(type, _oldValue, bubbles, cancelable);
        } 
        
        public override function toString():String 
        { 
            return formatToString("BoxHitEvent", "type", "bubbles", "cancelable", "eventPhase"); 
        }
        
        public function get oldValue():uint { return _oldValue; }
        
    }
    
}